package com.verlet.configclient.message;

import org.springframework.cloud.stream.annotation.Output;
import org.springframework.messaging.MessageChannel;
import org.springframework.messaging.SubscribableChannel;

/**
 * @author verlet
 * @date 2019/5/7
 */
public interface Barista {

    String OUTPUT_CHANNEL = "output_channel";

    String INPUT_CHANNEL = "input_channel";

    /**
     * 消息发送
     */
    @Output(Barista.OUTPUT_CHANNEL)
    MessageChannel output();

    /**
     * 消息接受
     */
    @Output(Barista.INPUT_CHANNEL)
    SubscribableChannel input();

}
